html,body{
    height: 100%;
}
body{
    display: flex;
    /* 设置以y轴为主轴 */
    flex-direction: column;
    background-color: #f3f3f3;
}
/* 1.头部 */
.header{
    width: 100%;
    height: 44px;
    background-color:#E43130;
    display: flex;
    justify-content:space-between;
    padding: 0 5px;
    box-sizing: border-box;
}
.header span{
font-size: 26px;
color: white;
margin:5px 0;
}
.header input{
    flex:1;
    height: 30px;
    outline: none;
    border: none;
    border-radius: 15px;
    text-indent: 15px;
    margin: 6px 10px;
}
.header a{
    color: white;
    font-size: 18px;
    margin:5px 0;
}

/* 2.主体 */
.main{
    flex: 1;
    /* 设置滚动，让y轴能滚动起来，超出部分就滚动起来 */
    overflow-y: scroll;

}
/* 设置轮播图分页器的按钮不是圆框 */
.banner .swiper-pagination-bullet{
    width: 16px;
    height: 5px;
    border-radius: 0;
    background-color: white;
    align-content: center;
}

/* banner部分 */
.banner img{
    width: 100%;
}

/* 内容部分 */
.content-lists{
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
}
.content-lists li{
width: 20%;
padding: 8px;
box-sizing: border-box;
}
.content-lists img{
    width: 100%;
}
.content-lists p{
    text-align: center;
    line-height: 30px;
}

.content-nav .swiper-container{
    padding-bottom: 20px;
}
/* 内容的分页器 */
.content-nav .swiper-pagination-bullet{
    width: 10px;
    height: 5px;
    border-radius: 0;
    background-color: #E43130;
}

/* 秒杀 */
.sec-skill>div{
    background-color: #fff;
    margin: 0 5px;
}
/* 弹性布局是在加父级上 */
.sec-skill-header{
    display:flex;
    justify-content: space-;
    align-items: center;
    padding: 5px;
}
.sec-skill-header h1{
    font-size: 20px;
}
.sec-skill-header p{
    align-self: flex-end;
    padding-left: 5px;

}
.sec-skill-header span{
    flex: 1;
    align-self: flex-end;
    padding-left: 5px;

}
.sec-skill-header a{
    color: #E43130;
}
.sec-skill-content img{
    width: 100%;

}
.sec-skill-content ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sec-skill-content ul li{
    text-align: center;
    margin: 0 2px;
}
.sec-skill-content ul li span{
    display:block;
    padding:2px 0;
    color: #E43130;
}
.sec-skill-content ul li p{
    text-decoration: line-through;
}

/* 新用户 */
.new-user{
    background-color: #fff;
    margin: 8px;
}
.new-user img{
    width: 100%;
    border-radius: 10px;
}
.new-user>div{
    display: flex;
    justify-content: space-around;
}
.new-user a{
    display: block;
    margin: 5px;

}
/* 每日逛 */
.day-title img{
width: 100%;
}
.day img{
    width: 100%;
}

.day ul{
    display: flex;
    flex-wrap: wrap;
    justify-content:space-between;
    align-content: center;
    background-color:#f3f3f3;
}
.day ul li{
    width: calc(25% - 2px);
    margin-bottom: 2px;
    background-color:white ;
    
}
.day ul li h3,p{
    margin:5px 0 0 5px;
}

/* 乐购新闻 */

.news{
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    margin: 8px 2px;
}
.news .news-title{
    flex: 1;
    display: flex;
    align-items: center;
}

.news .swiper-slide>div{
    overflow: hidden;
}
.news .swiper-slide>div span{
    flex:1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 商品推荐 */
.items-title img{
    width: 100%;
}
.items-content img{
    border-radius: 8px;
    width: 100%;
}
.items-content ul {
    display: flex;
    justify-content: space-between;
    align-content: center;
    flex-wrap: wrap;
    background-color:#f2f2f2;
    margin:4px;
    box-sizing: border-box;
}
.items-content ul li {
    width: calc(50% - 6px);
    margin-bottom: 10px;
    background-color: white;

}
.items-content ul li p{
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    line-height: 26px;
    font-size: 14px;
}
.items-content ul li .price{
    color: red;
    font-size: 14px;
}
.items-content ul li .similar{
    float: right;
    font-size: 14px;
}
/* 底部版权 */
.copyright{
    margin-top: 20px;
    padding: 20px 9px 20px 9px;
    background-color: rgb(78,82,94);
}
.copyright>div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.copyright>div button{
    padding: 0 17px;
    line-height: 35px;
    height: 35px;
    border: 1px solid rgb(66, 69, 77);
    border-radius: 6px;
    background-color: rgb(85, 89, 101);
    color: rgb(195, 198, 202);
}



